//
//  collection_proto3AppDelegate.h
//  collection-proto3
//
//  Created by Robert England on 10/24/10.
//  Copyright Transylvania University 2010. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

@interface Proto3AppController : NSObject <UIApplicationDelegate> {
    
    UIWindow *window;
    
@private
    NSManagedObjectContext *managedObjectContext_;
    NSManagedObjectModel *managedObjectModel_;
    NSPersistentStoreCoordinator *persistentStoreCoordinator_;
	
	//RE::24Oct2010; Big Nerd p 354
	UINavigationController *navigationController;
	//::RE
}

//RE::24Oct2010
// class method for convenience
+(Proto3AppController *)sharedAppController;

-(NSArray *)allInstancesOf:(NSString *)entityName
			   orderedBy:(NSString *)attName;

//::RE

@property (nonatomic, retain) IBOutlet UIWindow *window;

@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (NSString *)applicationDocumentsDirectory;

@end

